<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "new_level".
 *
 * @property int $id
 * @property int $value
 * @property string $name
 */
class NewLevel extends \yii\db\ActiveRecord
{

    public static $keys = [

        'none' => 0,

        'vip1' => 501,
        'vip2' => 502,
        'vip3' => 503,
        'vip4' => 504,

    ];

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'new_level';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['value'], 'integer'],
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'value' => 'Value',
            'name' => 'Name',
        ];
    }
}
